package Puppy;

public class Puppy {
    public Puppy(String name){
        System.out.println(("dog's name is   " + name));
    }
    int Puppyage;
    public void setAge( int age){
        Puppyage = age;
    }
    public int Getage(){
        System.out.println("dog's age is   " + Puppyage);
        return Puppyage;
    }
    public static void main(String[] args){
        Puppy mypuppy = new Puppy("lucy");
        mypuppy.setAge(3);
        mypuppy.Getage();
    }
}
